#!/bin/sh

module purge
module load intel/2019.update5 intelmpi/2019.update5 mkl/2019.update5 gcc/9.2.0
module load elpa/2021.11.002/intelmpi2019
module load cmake/3.19.0

CC=icc CXX=icpc cmake -B build_cpu_intelmpi2019_221230dev -DCereal_INCLUDE_DIR=/home/nic/wszhang/abacus/3rdparty/cereal-1.3.0/include -DELPA_LIBRARY=/gpfs/opt/elpa/elpa-2021.11.002_intel2019/lib/libelpa.so -DELPA_INCLUDE_DIR=/gpfs/opt/elpa/elpa-2021.11.002_intel2019/include/elpa-2021.11.002 -DUSE_CUDA=0 -DMPI_CXX_COMPILER=mpicc

cmake --build build_cpu_intelmpi2019_221230dev/ -j4
